package com.huawei.service;

public class SCIimpl implements StringChangeInt{
    @Override
    public int change(String str) {
        int num=0;
        if(str!=null)
        try{
            num=Integer.parseInt(str);
            if(num==0)
                num=-1;
        }catch (Exception e){
            num=-1;
        }
        return num;
    }
}
